//this class use to test thread interface
//andycai_sc 2011-05-15

#include "GParallel/GMutex.h"
#include "GParallelTester.h"

class GThreadTester : public GParallelTester
{
public:
	~GThreadTester();

	static GThreadTester& instance();

	void testThread();
	void testThreading();
	void threading();

	void run();

private:
	GThreadTester(const string& testName = "GThread");
	static GThreadTester _threadTester;
	GMutex m_mutex;
	bool m_isRunning;
};
